// 模块化接口

const router = require('express').Router()
const db = require('../../dbconfig')

router.get('/test',(req,res) => {
    let sql = "select * from vuetest" // sql语句
    db.query(sql, (err, data) => {
        // console.log(data)
        res.send(data)
    })
})

module.exports = router